/*
 * @Author: tkp
 * @Date: 2021-11-20 16:40:50
 */
import http from './http'
//员工登录
export function empLoginPwd(params) {
    return http.post(`/org-base/login/employee/password_login`, params)
}
//管理员登录
export function adminLoginPwd(params) {
    return http.post(`/authority/login/system-admin/password_login`, params)
}
//员工登录图片校验
export function getVerifyImage(params) {
    return http.get(`/org-base/verify/get_verify_image`)
}
//登录图片校验
export function getVerifyImage2(params) {
    return http.get(`/org-base/verify/get_text_verify_image`)
}
//管理员登录图片校验
export function getVerifyImageAdmin(params) {
    return http.get(`/authority/verify/get_verify_image`)
}
//管理员登录图片校验
export function getVerifyImageAdmin2(params) {
    return http.get(`/authority/verify/get_text_verify_image`)
}
//获取oss路径url获取密钥
export function generatePresignedUrl(params) {
    return http.post(`/amaos/file/generatePresignedUrl`, params)
}
//授权管理-授权
export function authorization(params) {
    return http.post(`/authority/authority/authorization`, params)
}
//授权管理-查询指定操作员已授权的菜单
export function authorityMenu(params) {
    return http.get(`/authority/authority/query/auth-menu/${params}`)
}
//授权管理-根据系统id查询指定操作员已授权的菜单
export function authorityMenuBySysId(params) {
    return http.post(`/authority/authority/list/auth-menu`, params)
}
//授权管理-查询指定操作员已授权的角色
export function authoritySelectedRoles(params) {
    return http.get(`/authority/authority/query/selected-roles/${params}`)
}
//权限管理-权限接口新增
export function authInterfaceAdd(params) {
    return http.post(`/authority/auth/interface/add`, params)
}
//权限管理-权限接口列表
export function authInterfaceQuery(params) {
    return http.post(`/authority/auth/interface/list`, params)
}
//权限管理-权限接口修改
export function authInterfaceModify(params) {
    return http.post(`/authority/auth/interface/modify`, params)
}
//权限管理-权限接口删除
export function authInterfaceDel(params) {
    return http.get(`/authority/auth/interface/remove/${params}`)
}
//权限管理-刷新权限缓存
export function authRefreshCache(params) {
    return http.post(`/authority/auth/used/refresh_cache`, params)
}
//权限管理-系统模块新增
export function authModuleAdd(params) {
    return http.post(`/authority/auth/module/add`, params)
}
//权限管理-系统模块列表
export function authModuleQuery(params) {
    return http.post(`/authority/auth/module/list`, params)
}
//权限管理-系统模块修改
export function authModuleModify(params) {
    return http.post(`/authority/auth/module/modify`, params)
}
//权限管理-系统模块详情
export function authModuleQueryOne(params) {
    return http.get(`/authority/auth/module/query/${params}`)
}
//权限管理-系统模块删除
export function authModuleDel(params) {
    return http.get(`/authority/auth/module/remove/${params}`)
}
//权限管理-菜单新增
export function authMenuAdd(params) {
    return http.post(`/authority/auth/menu/add`, params)
}
//权限管理-菜单修改
export function authMenuModify(params) {
    return http.post(`/authority/auth/menu/modify`, params)
}
//权限管理-菜单查询列表
export function authMenuTreeList(params) {
    return http.post(`/authority/auth/menu/tree-list`, params)
}
//权限管理-系统菜单查询详情
export function authMenuQueryOne(params) {
    return http.get(`/authority/auth/menu/query/${params}`)
}
//权限管理-系统菜单删除
export function authMenuDel(params) {
    return http.get(`/authority/auth/menu/remove/${params}`)
}
//权限管理-角色查询新增
export function authRoleAdd(params) {
    return http.post(`/authority/auth/role/add`, params)
}
//权限管理-角色查询修改
export function authRoleModify(params) {
    return http.post(`/authority/auth/role/modify`, params)
}
//权限管理-角色查询列表
export function authRoleQuery(params) {
    return http.post(`/authority/auth/role/list`, params)
}
//权限管理-角色查询删除
export function authRoleDel(params) {
    return http.get(`/authority/auth/role/remove/${params}`)
}
//权限管理-查询角色与菜单关系列表
export function authMenuStrategyQuery(params) {
    return http.get(`/authority/auth/menu-strategy/query/${params}`)
}
//权限管理-查询角色与菜单关系列表查询
export function authMenuStrategyQueryList(params) {
    return http.post(`/authority/auth/menu-strategy/list`, params)
}
//权限管理-保存角色与菜单关系
export function authMenuStrategySave(params) {
    return http.post(`/authority/auth/menu-strategy/save`, params)
}
//权限管理-系统信息新增
export function authSystemAdd(params) {
    return http.post(`/authority/auth/system/add`, params)
}
//权限管理-系统信息修改
export function authSystemModify(params) {
    return http.post(`/authority/auth/system/modify`, params)
}
//权限管理-系统信息查询
export function authSystemQuery(params) {
    return http.post(`/authority/auth/system/list`, params)
}
//权限管理-系统信息删除
export function authSystemDel(params) {
    return http.get(`/authority/auth/system/remove/${params}`)
}
//管理员信息-新增
export function authSystemAdminAdd(params) {
    return http.post(`/authority/auth/system-admin/add`, params)
}
//管理员信息-修改
export function authSystemAdminModify(params) {
    return http.post(`/authority/auth/system-admin/modify`, params)
}
//管理员信息-修改默认标识
export function authSystemAdminModifyDefaultFlag(params) {
    return http.post(`/authority/auth/system-admin/change_default_flag`, params)
}
//管理员信息-修改可用状态
export function authSystemAdminModifyEnble(params) {
    return http.post(`/authority/auth/system-admin/change_enable`, params)
}
//管理员信息-修改密码
export function authSystemAdminModifyPwd(params) {
    return http.post(`/authority/auth/system-admin/change_password`, params)
}
//管理员信息-查询
export function authSystemAdminQuery(params) {
    return http.post(`/authority/auth/system-admin/page_list`, params)
}
//管理员信息-删除
export function authSystemAdminDel(params) {
    return http.get(`/authority/auth/system-admin/remove/${params}`)
}
//权限策略-新增
export function strategyAdd(params) {
    return http.post(`/authority/auth/strategy/add`, params)
}
//权限策略-修改
export function strategyModify(params) {
    return http.post(`/authority/auth/strategy/modify`, params)
}
//权限策略-查询
export function strategyQuery(params) {
    return http.post(`/authority/auth/strategy/list`, params)
}
//权限策略-删除
export function strategyDel(params) {
    return http.get(`/authority/auth/strategy/remove/${params}`)
}
//权限策略-详情
export function strategyQueryOne(params) {
    return http.get(`/authority/auth/strategy/detail/${params}`)
}
//权限策略-分页查询
export function strategyQueryPage(params) {
    return http.post(`/authority/auth/strategy/page_list`, params)
}
//权限策略-保存权限策略和菜单的关系
export function strategyMenuAdd(params) {
    return http.post(`/authority/auth/strategy-menu/add`, params)
}
//权限策略-查询权限策略和菜单的关系
export function strategyMenuQuery(params) {
    return http.post(`/authority/auth/strategy-menu/list`, params)
}
//权限策略-查询权限策略和菜单的树形关系
export function strategyMenuQueryTree(params) {
    return http.post(`/authority/auth/strategy-menu/tree`, params)
}